Unrestricted Elements

Unrestricted elements can contain any elements that are declared elsewhere in the DTD (either internal or external).  You cannot stipulate the order of any elements contained within an unrestricted element.

In the following example, we show a declaration of an empty element (<empty.element>), and an unrestricted element (<unrestricted.element>).  

<?xml version="1.0"?>
<!DOCTYPE root.element [
	<!ELEMENT empty.element EMPTY>
	<!ELEMENT unrestricted.element ANY>
]>
<root.element>

	<empty.element/>

	<unrestricted.element>
		<empty.element/>
		<empty.element/>
		<empty.element/>
	</unrestricted.element>

</root.element>

File: Chapter 4\SpecialElementTypes.xml